public class Compute
extends java.lang.Object
| Constructor and Description |
|---|
Compute(State s)
Instantiates a new compute, calls and initiates the State object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
decision(Individual x,
int week)
Decision: Computes the final decision of the individual.
|
double |
friendfactor(Individual x,
int week)
Friendfactor: returns a number between 0 and 1, which represents how much friends effect an individual decision
|
boolean |
Strategy(Individual x,
int week)
Strategy: Computes the strategy of the individual.
|
public Compute(State s)
s - the spublic boolean Strategy(Individual x, int week)
x - [Individual]week - [int]public double friendfactor(Individual x, int week)
x - [Individual]week - [int]public boolean decision(Individual x, int week)
x - [Individual]week - [int]